mobileOrientation
Type
function
Summary
Returns the current interface orientation.
Syntax
mobileOrientation()
Description
Use the mobileOrientation function to find the current interface orientation.
The mobileOrientation function returns the current orientation of the interface.
Due to the limitation of the Android operating system, landscape left and portrait upside-down are only supported on Android 2.3 and later.
The iPhone X model doesn’t currently support upside-down portrait mode. Other Apple iPad and iPhone devices continue to support both standard and upside-down portait and landscape orientations.
Examples
put mobileOrientation() into theInterfaceOrientation
Related
message: orientationChanged
command: mobileSetAllowedOrientations, mobileLockOrientation, mobileUnlockOrientation, mobileSetFullScreenRectForOrientations
function: mobileDeviceOrientation, mobileAllowedOrientations
Compatibility and Support
Introduced
LiveCode 4.5.2
OS
ios
android
Platforms
mobile